a. Javascript dialogs


The result is:
The result is:

b. setInterval(function, milliseconds);
and setTimeout(function, milliseconds);

setInterval() - executes a function, over and over again, at specified time intervals (milliseconds)
setTimeout() - executes a function, once, after waiting a specified number of milliseconds




c. Arrays

var arr1 = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];

var arr2 = new Array('Su','Mo','Tu','We','Th','Fr','Sa');

var tday = new Date();
document.getElementById("lblToday2").innerHTML =
arr1[tday.getMonth()] + " " + tday.getDate() + " " + arr2[tday.getDay()];

1. Today: (See comment in code)

2. Today: